#include <iostream>
#include "vectorfunctions.h"

int main()
{
	int diff_l, inter_l, uni_l, a_l=0, b_l=0, i, j, k;
	int a[100], b[100], di[100], in[100], un[100];
	cout<<"Elements in A \\ B : ";
	cin>>diff_l;
	readVector(di, diff_l);
	cout<<"Elements in A U B : ";
	cin>>uni_l;
	readVector(un, uni_l);
	cout<<"Elements in A V B : ";
	cin>>inter_l;
	readVector(in, inter_l);
	for (i=0;i<inter_l;i++){
		a[i]=in[i];
		++a_l;
		b[i]=in[i];
		++b_l;
	}
	for (i=0;i<diff_l;i++){
		a[a_l]=di[i];
		++a_l;
	 }
	for(j=0;j<uni_l; j++)
		if(no_in_vector(di, diff_l, un[j])<0 && no_in_vector(in, inter_l, un[j])<0){
			b[b_l]=un[j];
			++b_l;
		}
	ascsort(a, a_l);
	ascsort(b, b_l);
	printVector(a, a_l);
	printVector(b, b_l);
return 0;
}
